file(GLOB SOURCES *.c)

foreach (SOURCE ${SOURCES})
    get_filename_component(EXENAME ${SOURCE} NAME_WE)
    add_executable(${EXENAME} ${SOURCE})
endforeach ()
